/*
 * File:   DiceAdds.cpp
 * Author: luk
 *
 * Created on March 6, 2015, 10:06 PM
 */

#include <stdlib.h>

#include "DieServiceImpl.h"

int DieServiceImpl::roll(int dice) {
    int result = 0;

    for (int i = 0; i < dice; i++) {
        result += rand() % 6 + 1;
    }

    return result;
}
